package homework.manager;

import java.util.HashMap;
import java.util.Map;

public class Beans {
    private static final Map<Class<?>, Object> beanMap = new HashMap<>();
    static {
        beanMap.put(SessionManager.class, new SessionManager());
        beanMap.put(StakeManager.class, new StakeManager());
    }

    public static <T> T getBean(Class<?> target) {
        return (T) beanMap.get(target);
    }
}